package com.billing.model.entity;

import java.text.SimpleDateFormat;

/**
 * @author Administrator 咨询
 */
public class Consultation {

	private String id;
	private String consultingtitle;// 标题
	private String writer;// 作者
	private String outline;// 摘要
	private String article;// 内容
	private String articletypeid;// 内容类型
	private String belonging;// 来源
	private String sourceaddress;// 来源地址
	private Integer userid;// 添加人---责任编辑人姓名
	private String path;// 附件保存路径 /////******////
	private Long addtime;// 添加时间
	private String addtimeString;// 添加时间格式-时间戳
	private int organizationId;// 归属商户id

	private String reviewcontent;// 评论内容
	private Long reviewtime;// 评论时间
	private String reviewtimeString;// 评论时间格式-时间戳
	private Integer commentator;// 评论人
	private Integer readornot;// 消息状态 0:已读；1：未读

	private String uname;// 别名-用户名

	private Articletype art = new Articletype();
	private TUser user = new TUser();
	SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public Integer getUserid() {
		return userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	public String getUname() {
		return uname;
	}

	public void setUname(String uname) {
		this.uname = uname;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getConsultingtitle() {
		return consultingtitle;
	}

	public void setConsultingtitle(String consultingtitle) {
		this.consultingtitle = consultingtitle;
	}

	public String getWriter() {
		return writer;
	}

	public void setWriter(String writer) {
		this.writer = writer;
	}

	public String getOutline() {
		return outline;
	}

	public void setOutline(String outline) {
		this.outline = outline;
	}

	public String getArticle() {
		return article;
	}

	public void setArticle(String article) {
		this.article = article;
	}

	public String getArticletypeid() {
		return articletypeid;
	}

	public void setArticletypeid(String articletypeid) {
		this.articletypeid = articletypeid;
	}

	public String getBelonging() {
		return belonging;
	}

	public void setBelonging(String belonging) {
		this.belonging = belonging;
	}

	public String getSourceaddress() {
		return sourceaddress;
	}

	public void setSourceaddress(String sourceaddress) {
		this.sourceaddress = sourceaddress;
	}

	public Long getAddtime() {
		return addtime;
	}

	public void setAddtime(Long addtime) {
		this.addtime = addtime;
		if (addtime != null && !addtime.equals("")) {
			this.addtimeString = format.format(addtime);
		}
	}

	public String getAddtimeString() {
		return addtimeString;
	}

	public void setAddtimeString(String addtimeString) {
		this.addtimeString = addtimeString;
	}

	public int getOrganizationId() {
		return organizationId;
	}

	public void setOrganizationId(int organizationId) {
		this.organizationId = organizationId;
	}

	public Articletype getArt() {
		return art;
	}

	public void setArt(Articletype art) {
		this.art = art;
	}

	public TUser getUser() {
		return user;
	}

	public void setUser(TUser user) {
		this.user = user;
	}

	public String getReviewcontent() {
		return reviewcontent;
	}

	public void setReviewcontent(String reviewcontent) {
		this.reviewcontent = reviewcontent;
	}

	public Long getReviewtime() {
		return reviewtime;
	}

	public void setReviewtime(Long reviewtime) {
		this.reviewtime = reviewtime;
		if (reviewtime != null && !reviewtime.equals("")) {
			this.reviewtimeString = format.format(reviewtime);
		}
	}

	public String getReviewtimeString() {
		return reviewtimeString;
	}

	public void setReviewtimeString(String reviewtimeString) {
		this.reviewtimeString = reviewtimeString;
	}

	public Integer getCommentator() {
		return commentator;
	}

	public void setCommentator(Integer commentator) {
		this.commentator = commentator;
	}

	public Integer getReadornot() {
		return readornot;
	}

	public void setReadornot(Integer readornot) {
		this.readornot = readornot;
	}

}
